//
//  HWBookTicketCell.m
//  嗨文
//
//  Created by 响当当 on 2019/2/22.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWBookTicketCell.h"

@interface HWBookTicketCell ()
@property (nonatomic ,strong)UILabel *titleLabel;
@end

@implementation HWBookTicketCell
- (UILabel *)titleLabel
{
    if (!_titleLabel)
    {
        _titleLabel = [HWUtilties creatLabelWithFrame:CGRectMake(17*kUIScaleBasePlus,21*kUIScaleBasePlus,120*kUIScaleBasePlus,16*kUIScaleBasePlus)
                                              textAligment:NSTextAlignmentLeft
                                                  textClor:LCHexColor(0x000000)
                                                  textFont:16*kUIScaleBasePlus];
    }
    return _titleLabel;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self.contentView addSubview:self.titleLabel];
        
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(17*kUIScaleBasePlus,55*kUIScaleBasePlus,359*kUIScaleBasePlus,1*kUIScaleBasePlus)];
        lineView.backgroundColor = LCHexColor(0xEBE5E1);
        [self.contentView addSubview:lineView];
    }
    return self;
}

#pragma mark - 获取数据
- (void)getDate:(NSString *)str
{
    self.titleLabel.text = str;
}
@end
